const TOKEN_KEY = 'test_geek_pc';
const setToken = (token) => localStorage.setItem(TOKEN_KEY, token);
const clearToken = () => localStorage.removeItem(TOKEN_KEY);
const getToken = () => localStorage.getItem(TOKEN_KEY);
//是否登录
const isAuth = () => !!getToken();
export { setToken, clearToken, getToken, isAuth };
